package edu.gyc.dao;

import edu.gyc.model.Girl;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

@Repository
public class GirlDaoImpl implements GirlDao {

    private static Map<Integer, Girl> girlMap = new HashMap<>();
    static {
        for (int i = 0; i < 10; i++) {
            girlMap.put(i,new Girl("高圆圆"+i,i,160,i));
        }
    }
    @Override
    public void add() {

    }

    @Override
    public Collection<Girl> getGirls() {
        return girlMap.values();
    }
}
